﻿#include"SeqList.h"
void TestSeqList1()
{
	SL s1;
	SLInit(&s1);
	SLPushBack(&s1,1);
	SLPushBack(&s1, 2);
	SLPushBack(&s1, 4);
	SLPushBack(&s1, 3);
	SLPushBack(&s1, 5);
	SLPushBack(&s1, 5);
	SLPrint(&s1);
	
	int pos = SLFind(&s1, 5,0);
	while (pos != -1)
	{
		SLErase(&s1, pos);
		pos = SLFind(&s1, 5,0);
	}
	SLPrint(&s1);
	SLDestory(&s1);
	

}

int main()
{
	TestSeqList1();
	return 0;
}
